package top.my;

import io.vertx.core.Vertx;
import top.my.api.ApiServer;
import top.my.db.RedisServer;
import top.my.db.SqlServer;
import top.my.http.WebServer;
import top.my.socket.SockServer;
import io.vertx.example.util.Runner;

public class MainServer {
    public static void main(String[] args) {
        //Runner.runExample(SockServer.class);
        //Runner.runExample(ApiServer.class);
        //Runner.runExample(WebServer.class);
        Vertx vertx = Vertx.vertx();
        vertx.deployVerticle(new SqlServer());
        vertx.deployVerticle(new RedisServer());
        vertx.deployVerticle(new ApiServer());
        vertx.deployVerticle(new WebServer());
        vertx.deployVerticle(new SockServer());
    }

}
